﻿using MindASPCoreWebAPI.IRepository.SystemManager;
using MindASPCoreWebAPI.PoModel.SystemManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MindASPCoreWebAPI.Service.SystemManager
{
    //字典（bll）
   public  class DictionariesService
    {
        private IDictionariesRepository _dictionariesRepository;
        public DictionariesService(IDictionariesRepository dictionariesRepository)
        {
            _dictionariesRepository = dictionariesRepository;
        }

        /// <summary>
        /// 根据字典类别key获取下面的字典选项
        /// </summary>
        /// <param name="typeKey">字典类别key</param>
        /// <returns></returns>
        public List<Dictionary_Model> GetDtListByTypeKey(string typeKey)
        {
            return _dictionariesRepository.GetDtListByTypeKey(typeKey);
        }
    }
}
